<?php
	/**
	 * Plugin Name: Board Minutes
	 * Plugin URI: http://www.svkbreclav.cz/
	 * Description: Main file of the Board Minutes plugin.
	 * Version: 1.1
	 * Author: awisp.cz
	 * Author URI: http://www.awisp.cz/
	 * License: GPL2
	 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
	 * Domain Path: /languages
	 * Text Domain: board-minutes
	**/
	
	/* Prevent From Direct Access */
	if(!defined("ABSPATH")) exit();
	
	/* Base Path Definition */
	define("BOARDMINUTES_BASE_PATH", __DIR__ . "/");
	
	/* Plugin Infrastructure Paths */
	define("BOARDMINUTES_LANGUAGES_PATH", BOARDMINUTES_BASE_PATH . "languages/");
	define("BOARDMINUTES_LIBRARY_PATH", BOARDMINUTES_BASE_PATH . "library/");
	
	/* Text Domain */
	define("BOARDMINUTES_TEXT_DOMAIN", "board-minutes");
	
	/* Items Per Page */
	define("BOARDMINUTES_PER_PAGE", 20);
	
	/* Register Autoload */
	spl_autoload_register(function($class){
		$filePath = BOARDMINUTES_LIBRARY_PATH . $class . ".php";
		if(file_exists($filePath)){
			require_once($filePath);
		}
	});
	
	/* Run Plugin */
	$boardMinutes = new BoardMinutes();
	$boardMinutes->init(__FILE__);
?>